import request from '@/utils/http'

// 分页查询-店铺信息
export function storeListApi(data) {
	return request({
		url: `/app/store/page`,
		method: 'get',
		data
	})
}


// 查询-店铺详情
export function storeDetailApi(id) {
	return request({
		url: `/app/store/details/${id}`,
		method: 'get'
	})
}

// 分页查询-店铺信息（个人店铺）
export function myStoreListApi(data) {
	return request({
		url: `/app/store/myPage`,
		method: 'get',
		data
	})
}

// 分页查询-店铺的活动（个人店铺）
export function storeActivityListApi(data) {
	return request({
		url: `/app/activity/businessPage`,
		method: 'get',
		data
	})
}

// 添加-申请店铺
export function applyStoryApi(data) {
	return request({
		url: '/app/store/apply',
		method: 'post',
		data
	})
}

export function reApplyStoryApi(data) {
	return request({
		url: '/app/store/apply',
		method: 'PUT',
		data
	})
}

// 删除店铺申请 提单
export function deleteStoryApi(data) {
	return request({
		url: '/app/cancellation/storeRemove/apply',
		method: 'post',
		data
	})
}


// 编辑-修改店铺基础信息
export function baseEditApi(data) {
	return request({
		url: '/app/store/baseEdit',
		method: 'put',
		data
	})
}